.app-content {
  box-sizing: border-box;
  width: 99vw;
  overflow-x: hidden;
}

.printer-detail-container {
  width: 100%;
  min-width: 100%;
  padding: 2rem;
  margin: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* 添加背景图片及高斯模糊效果 */
.printer-detail-container::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://k.sinaimg.cn/n/sinakd20116/214/w2048h1366/20221104/af07-e6609440d705650f2c294447c6e87a53.jpg/w700d1q75cms.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(10px);
  z-index: -1;
  opacity: 0.7;
}

.detail-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  padding: 1.2rem;
  backdrop-filter: blur(5px);
}

.back-button {
  padding: 0.5rem 1rem;
  background-color: rgba(240, 240, 240, 0.7);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #333;
  display: flex;
  align-items: center;
  transition: background-color 0.3s;
}

.back-button:hover {
  background-color: rgba(224, 224, 224, 0.9);
}

.detail-header h1 {
  margin: 0;
  font-size: 1.8rem;
  color: #333;
  flex-grow: 1;
  font-weight: 500;
}

.status-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.status-badge.online {
  background-color: #52c41a;
  color: white;
}

.status-badge.offline {
  background-color: #ff4d4f;
  color: white;
}

.detail-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.detail-section {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
}

.detail-section h2 {
  margin: 0 0 1.5rem 0;
  color: #333;
  font-size: 1.2rem;
  font-weight: 500;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-label {
  color: #666;
  font-size: 0.9rem;
}

.info-value {
  color: #333;
  font-size: 1.1rem;
  font-weight: 500;
}

.text-success {
  color: #52c41a !important;
}

.text-danger {
  color: #ff4d4f !important;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background: rgba(248, 249, 250, 0.6);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.2s, background-color 0.3s;
}

.stat-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.9);
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: #1890ff;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #666;
  font-size: 0.9rem;
}

/* 任务队列样式 */
.task-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
}

.task-tab {
  padding: 0.5rem 1rem;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1rem;
  color: #666;
  position: relative;
  transition: all 0.3s ease;
}

.task-tab.active {
  color: #1890ff;
  font-weight: 500;
}

.task-tab.active::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  right: 0;
  height: 2px;
  background: #1890ff;
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.task-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.5rem;
  background: rgba(248, 249, 250, 0.7);
  border-radius: 8px;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
  backdrop-filter: blur(3px);
}

.task-item:hover {
  background: rgba(241, 243, 245, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.task-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.task-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.25rem;
}

.task-time {
  font-size: 0.9rem;
  color: #666;
}

.task-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 1rem;
}

.task-status {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.status-pending {
  background: rgba(233, 236, 239, 0.8);
  color: #666;
}

.status-printing {
  background: rgba(227, 242, 253, 0.8);
  color: #1976D2;
}

.status-completed {
  background: rgba(232, 245, 233, 0.8);
  color: #2e7d32;
}

.status-failed {
  background: rgba(255, 235, 238, 0.8);
  color: #c62828;
}

.print-button {
  padding: 0.5rem 1.5rem;
  background: #1890ff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.print-button:hover {
  background: #40a9ff;
}

.delete-button {
  padding: 0.5rem 1.5rem;
  background: #ff4d4f;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.delete-button:hover {
  background: #ff7875;
}

.task-copies {
  font-size: 0.9rem;
  color: #666;
  margin-left: 1rem;
  padding: 0.25rem 0.75rem;
  background: #f0f0f0;
  border-radius: 12px;
}

/* 上传区域样式 */
.upload-section {
  margin-top: 1.5rem;
}

.upload-area {
  border: 2px dashed #ddd;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(5px);
}

.upload-area:hover {
  border-color: #1890ff;
  background: rgba(255, 255, 255, 0.7);
}

.upload-area.dragging {
  border-color: #1890ff;
  background: rgba(229, 246, 253, 0.7);
}

.upload-icon {
  font-size: 2rem;
  color: #666;
  margin-bottom: 1rem;
}

.upload-text {
  color: #666;
  margin-bottom: 0.5rem;
}

.upload-hint {
  font-size: 0.875rem;
  color: #999;
}

/* 上传进度条 */
.upload-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #e3f2fd;
  z-index: 1000;
}

.progress-bar {
  height: 100%;
  background: #1890ff;
  transition: width 0.3s ease;
}

/* Print Dialog Styles */
.print-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.print-dialog {
  background: white;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 1.5rem;
  animation: fadeIn 0.3s ease;
}

.print-dialog h2 {
  margin-top: 0;
  margin-bottom: 16px;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.print-dialog-content {
  margin-bottom: 20px;
}

.print-file-info {
  margin-bottom: 16px;
  padding: 10px;
  background-color: #f5f5f5;
  border-radius: 4px;
}

.print-file-info .file-name {
  font-weight: bold;
  display: block;
  margin-bottom: 4px;
  word-break: break-word;
}

.print-file-info .file-size {
  color: #666;
  font-size: 0.9em;
}

.print-option {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.print-option label {
  font-weight: 500;
  margin-bottom: 8px;
  color: #333;
}

.print-option input[type="number"],
.print-option select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.print-option input[type="number"]:focus,
.print-option select:focus {
  border-color: #1890ff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.print-option input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

/* 格式选择样式 */
.format-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.format-option {
  flex: 1;
  min-width: 120px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: #f9f9f9;
}

.format-option:hover {
  border-color: #1890ff;
  background: #f0f7ff;
}

.format-option.selected {
  border-color: #1890ff;
  background: #e6f7ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.format-option .format-name {
  font-weight: 500;
  margin-bottom: 4px;
}

.format-option .format-desc {
  font-size: 12px;
  color: #666;
}

.format-recommended {
  display: inline-block;
  background: #52c41a;
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 10px;
  margin-top: 4px;
}

.format-hint {
  font-size: 0.8rem;
  color: #888;
  margin-top: 8px;
  font-style: italic;
}

/* 文件列表样式改进 */
.file-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.file-item {
  padding: 1rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(3px);
}

.file-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.9);
}

.file-icon {
  font-size: 1.5rem;
  margin-right: 1rem;
  color: #666;
  width: 30px;
  text-align: center;
}

.file-info {
  flex: 1;
}

.file-name {
  font-size: 1.1rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 0.5rem;
  word-break: break-word;
}

.file-meta {
  display: flex;
  gap: 1rem;
  color: #666;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.file-actions {
  display: flex;
  gap: 0.5rem;
  margin-left: 1rem;
}

/* 按钮样式统一 */
.print-button, .delete-button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.print-button {
  background: #1890ff;
  color: white;
}

.print-button:hover {
  background: #40a9ff;
}

.delete-button {
  background: #ff4d4f;
  color: white;
}

.delete-button:hover {
  background: #ff7875;
}

/* 修复空列表样式 */
.empty-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  backdrop-filter: blur(5px);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #d9d9d9;
}

.print-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.print-dialog-actions button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
}

.print-dialog-actions .cancel-button {
  background-color: #f1f1f1;
  color: #333;
}

.print-dialog-actions .confirm-button {
  background-color: #2196F3;
  color: white;
}

.print-dialog-actions .confirm-button:hover {
  background-color: #0d8bf2;
}

.print-dialog-actions .cancel-button:hover {
  background-color: #e1e1e1;
}

/* 消息提示 */
.error-message, .success-message {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: fadeIn 0.3s ease;
  z-index: 100;
  max-width: 400px;
  backdrop-filter: blur(5px);
}

.error-message {
  background: rgba(255, 235, 238, 0.9);
  color: #c62828;
  border-left: 4px solid #c62828;
}

.success-message {
  background: rgba(232, 245, 233, 0.9);
  color: #2e7d32;
  border-left: 4px solid #2e7d32;
}

.error-message button, .success-message button {
  background: none;
  border: none;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-left: 10px;
  padding: 0 5px;
}

.error-message button {
  color: #c62828;
}

.success-message button {
  color: #2e7d32;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 加载动画 */
.loading-spinner {
  border: 3px solid rgba(243, 243, 243, 0.8);
  border-top: 3px solid #1890ff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
